// field_value_save: true 表示只需要存储在模板里面  false表示要存储到数据里面

export default [
  {
    type: "text",
    label: "普通文本",
    field_name: "",
    field_value: "文本内容",
    field_value_required:false,
    field_value_save: false,
    field_value_type:"String",
    field_width: "100px",
    field_height: "",
    field_text_align: "left",
    field_font_size: "14px",
    field_margin: "",
    field_display: "inline",
    field_font_weight:"",
    field_text_indent:"2em",
    field_color:"#000"
  },
  {
    type: "text_line",
    label: "下划线文本",
    field_value_required:true,
    field_value_save: true,
    field_value_type:"String",
    field_name: "",
    field_value: "",
    field_height: "22px",
    field_width: "100px",
    field_text_align: "center",
    field_font_size: "14px",
    field_margin: "",
    field_display: "inline-block",
    field_font_weight:"",
    field_color:"#000"
  },
  {
    type: "checkbox",
    label: "多选框组",
    field_name: "",
    field_value: [],
    field_value_required:true,
    field_value_save: true,

    field_value_type:"Array",
    field_options: [
      {
        dm: "1",
        mc: "选项1",
      },
      {
        dm: "2",
        mc: "选项2",
      },
    ],
    field_margin: "",
    field_display: "inline-block",
  },
  {
    type: "radio",
    label: "单选框组",
    field_name: "",
    field_value: "",
    field_value_required:true,
    field_value_save: true,

    field_value_type:"String",
    field_options: [
      {
        dm: "1",
        mc: "选项1",
      },
      {
        dm: "2",
        mc: "选项2",
      },
    ],
    field_margin: "",
    field_display: "inline-block",
  },
  {
    type: "input",
    label: "输入框",
    field_name: "",
    field_value: "",
    field_value_required:true,
    field_value_save: true,

    field_value_type:"String",

    field_width: "100px",
    field_text_align: "left",
    field_font_size: "14px",
    field_margin: "",
    field_display: "inline-block",
    field_relate_names:"", //相关字段
    field_relate_formula:"", //计算公示

  },
  {
    type: "textarea",
    label: "多行输入框",
    field_name: "",
    field_value: "",
    field_value_required:true,
    field_value_save: true,

    field_value_type:"String",

    field_width: "100%",
    field_text_align: "left",
    field_font_size: "14px",
    field_margin: "",
    field_display: "inline-block",
  },
  {
    type: "select",
    label: "下拉组件",
    field_name: "",
    field_value: "",
    field_width: "200px",
    field_font_weight:"bold",
    field_value_required:true,
    field_value_save: true,
    field_display: "inline-block",
    field_value_type:"String",
    field_options: [
      {
        dm: "1",
        mc: "选项1",
      },
      {
        dm: "2",
        mc: "选项2",
      },
    ],
    field_margin: "",
  },
  // {
  //   type: "sign",
  //   label: "签名组件",
  //   field_name: "",
  //   field_value: {
  //     sign_img:"",
  //     sign_time:"",
  //     sign_identity:"1",//1本人 2
  //     sign_relation:"" //与患者关系
  //   }, //签名的值
  //   field_value_required:true,
  //   field_value_save: true,
  //   field_value_type:"Object",
  //   field_margin: "20px 0 0 0",
  // },
  {
    type: "sign2",
    label: "签字组件",
    field_name: "",
    field_value:"", //签字的值
    field_value_required:true,
    field_value_save: true,
    field_value_type:"String",
    field_margin: "",
    field_width: "200px",
    field_display: "inline-block",
    sign_page:"",
    sign_x:"",
    sign_y:"",
    //type=1(手写签名)  type=2(指纹) type=3(签名&指纹)
    sign_type:"3",
    field_related: ""

  },
  {
    type: "sign3",
    label: "医生签名",
    field_name: "",
    field_value:"",
    field_value_required:true,
    field_value_save: true,
    field_value_type:"String",
    field_margin: "",
    field_display: "inline-block",
    field_related: ""
  },
  {
    type: "sign4",
    label: "医生签名(多)",
    field_name: "",
    field_value:"",
    field_value_required:true,
    field_value_save: true,
    field_value_type:"String",
    field_margin: "",
    field_display: "inline-block",
    field_related: ""
  },
  {
    type: "dateTime",
    label: "签名日期",
    field_name: "",
    field_value:"",
    field_value_required:true,
    field_value_save: true,
    field_value_type:"String",
    field_margin: "",
    field_display: "inline-block",
    field_font_weight:"bold"
  },
  {
    type: "table",
    label: "Table组件",
    field_name: "",
    field_value: "",
    field_value_required:true,
    field_value_save: true,
    field_value_type:"String",
    field_margin: "10px 0 0 0",
    field_width: "100%",
    field_rows:"2",//行
    field_cols:"3"//列


  },

  {
    type: "line",
    label: "线条",
    field_name: "",
    field_value: "线条",
    field_value_required:false,
    field_value_save: false,

    field_width: "100%",
    field_height: "1px",
    field_margin: "",
    field_display: "block",
    field_background:"#000"
  },
  {
    type: "td",
    label: "方格",
    field_name: "",
    field_value: "文本内容",
    field_value_required:false,
    field_value_save: false,
    field_value_type:"String",
    field_width: "100%",
    field_height: "",
    field_text_align: "center",
    field_font_size: "14px",
    field_margin: "",
    field_display: "inline-block",
    field_font_weight:"",
    field_text_indent:""
  },

  {
    type: "MZMZ_PGB",
    label: "麻醉门诊评估表",
    field_name: "",
    field_value: JSON.stringify({
      BRXM:"",
      AGE:"",
      ZYH:"",
      BRBH:"",
      BQMC:"",
      CWH:"",
      BRXB_STR:"",
      ZYHORBRBH:""
    }),
    field_value_required:true,
    field_value_save: true,
    field_value_type:"String",
    field_margin: "0",
    field_width: "100%",
  },
  // {
  //   type: "border",
  //   label: "方框",
  //   field_name: "",
  //   field_value: "文本内容",
  //   field_value_required:false,
  //   field_value_save: false,
  //   field_value_type:"String",
  //   field_width: "100%",
  //   field_height: "200px",
  //   field_top: "0px",
  //   field_left: "0px",
  //   field_display: "inline-block",
  //   field_index:1
  // },
]